//
//  CompanyImageView.h
//  AntsExpress
//
//  Created by slccper on 16/1/1.
//  Copyright © 2016年 slccper. All rights reserved.
//
#import <UIKit/UIKit.h>

@class cImageView;

@protocol cImageViewDelegate <NSObject>
@optional
- (void)loadImageSuccess;
- (void)loadImageSuccess2:(cImageView *)imageView;
@end

@interface cImageView : UIImageView {
    UIActivityIndicatorView *activityView;
    NSURLConnection *theConnection;
    NSMutableData *webData;
    UIApplication* app;
}

@property (nonatomic, readonly) UIActivityIndicatorView *activityView;
@property (nonatomic, assign) id<cImageViewDelegate> delegate;
@property (nonatomic, copy) NSString *serverDirectory;
@property (nonatomic, copy) NSString *localDirectory;
@property (nonatomic, copy) NSString *saveName;//文件名
@property (nonatomic, retain) UIImage *noNetImage;
@property (nonatomic, retain) UIImage *errorImage;
@property (nonatomic, retain) UIImage *noImage;
@property (nonatomic, copy) NSString *guid;
@property (nonatomic,assign) BOOL IsDisableImageAnimation;

- (void)refreshImage;
- (void)loadImage;
- (void)cancel;

@end
